﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DIProject.Data
{
    public  class Country
    {
        private static DataSets.Dictionary.CountriesDataTable _data = null;
        public static DataSets.Dictionary.CountriesDataTable Data
        {
            get
            {
                if (_data == null)
                {
                    DataSets.DictionaryTableAdapters.CountriesTableAdapter adapter = new DIProject.DataSets.DictionaryTableAdapters.CountriesTableAdapter();
                    _data = adapter.GetData(DIProject.Data.Sync.IsAdmin);
                }
                return _data;
            }
        }
        public static void ClearData()
        {
            _data = null;
        }
    }
    
}
